import { requestClient } from '#/api/request';

/**
 * 获取物料采购列表
 */
export async function getMaterialList(params: any) {
  return requestClient.get('/admin/Material/index', params);
}

/**
 * 物料添加
 */
export async function doMaterialAdd(params: any) {
  return requestClient.post('/admin/material/add', params);
}

/**
 * 物料添加
 */
export async function doMaterialEdit(params: any) {
  return requestClient.post('/admin/material/Edit', params);
}

/**
 * 物料删除
 */
export async function doMaterialDelete(params: any) {
  return requestClient.post('/admin/material/del', params);
}

/**
 * 物料审核
 */
export async function doMaterialApproval(params: any) {
  return requestClient.post('/admin/material/approval', params);
}

/**
 * 反审
 */
export async function doMaterialAgainst(params: any) {
  return requestClient.post('/admin/material/against', params);
}


/**
 * 变更记录
 */
export async function getMaterialChangeLog(params: any) {
  return requestClient.post('/admin/material/getActionLog', params);
}


/**
 * 物料详情

 */
export async function doMaterialInfo(params: any) {
  return requestClient.get('/admin/material/edit', params);
}


/**
 * 物料类型

 */
export async function doMaterialCategory(params: any) {
  return requestClient.get('/admin/MaterialCategory/index', params);
}

/**
 * 物料颜色

 */
export async function doMaterialColor(params: any) {
  return requestClient.get('/admin/MaterialColor/index', params);
}

/**
 * 物料列表

 */
export async function doMaterialList(params: any) {
  return requestClient.get('/admin/Material/index', params);
}

/**
 * 物料颜色

 */
export async function doMaterialColorAdd(params: any) {
  return requestClient.get('/admin/MaterialColor/add', params);
}


/**
 * sku

 */
export async function getMaterialSku(params: any) {
  return requestClient.get('/admin/material/getMaterialSku', params);
}


/**
 * 小类

 */
export async function getMaterialCat(params: any) {
  return requestClient.get('/admin/MaterialOption/selectOptions', params);
}
